//
//  TableShowBtnCell.swift
//  CooperSwift
//
//  Created by 计海峰 on 2021/12/9.
//

import UIKit
import WebKit
import RxSwift
import Foundation

// MARK: - btn cell
public class TableShowBtnCell: UITableViewCell {
    
    let stepBag = DisposeBag()
    
    /// btn
    lazy var btn: UIButton = {
        return self.createBtn()
    }()
    
    var btns: [UIButton] = []

    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        layoutViews()
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    public override func bindTo(_ info: Any?) {
        self.info = info
        loadData()
    }
    
    public override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

    deinit {
        debugPrint("💔 TableShowBtnCell deinit")
    }
    
}
